<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8" />
	<title>动态显示系统时间</title>
	<style type="text/css">
		body {
			width: 913px;
			margin: 0px auto;
		}

		.main {
			font-family: "黑体";
			font-size: 25px;
			color: #CC0000;
		}

		.clock {
			font-size: 50px;
			color: #CC0000;
			border-style: none
		}
	</style>

	</script>
</head>

<body>
	<div class="top">
		<img src="images/banner.png" alt="banner" />
	</div>
	<div class="main">
		当前系统时间：<input class="clock" type="text" id="time" />
	</div>
	<script>
		setInterval("document.getElementById('time').value=new Date().toLocaleString()", 1000);
	</script>
</body>

</html>